import 'babel-polyfill'                          //   es6  api 转义
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'                      // vuex
import Fastclick from 'fastclick'
import VueLazyload from 'vue-lazyload'

Fastclick.attach(document.body)
Vue.use(VueLazyload, {
  loading: require('./common/image/default.png')
})

import './common/stylus/index.styl'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)            // es6  createElement的方法
})
